<?php
	//字符串数组
	//索引数组  每个位置占一个元素
	//$cars = array("Volvo","BMW","Toyota");
	//修改数组中元素
	//$cars[1] = "哈弗"; 
	//echo "I like ".$cars[0].",". $cars[1]." and ".$cars[2];
	//
	//关联数组  每个位置站一对元素 k=>v 键=>值
	//$age = array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
	//用过 k获取 v
	//echo "Peter is ".$age["Ben"]." years old. " ;

	$x = array("google","runoob","taobao");
	foreach($x as $v ){
		echo $v.",";
	}
	echo "<br>";
	$age = array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
	foreach($age as $k=>$v){
		echo "键key= ".$k .", 值value=".$v;
		echo "<br>";
	}



?>